package com.morehair.bean.vo.wx;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: DLX
 * @Date: 2021/6/10 11:34
 * @Description:
 **/
@Data
public class WxCouponMyListVO {

    /**
     * id : 42
     * name : 111
     * desc : 111
     * tag : 1111
     * min : 100000.00
     * discount : 6.00
     * startTime : 2021-06-09 14:31:27
     * endTime : 2024-03-05 14:31:27
     */

    private int id;
    private String name;
    private String desc;
    private String tag;
    private BigDecimal min;
    private BigDecimal discount;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;

    public WxCouponMyListVO(int id, String name, String desc, String tag, BigDecimal min, BigDecimal discount, Date startTime, Date endTime) {
        this.id = id;
        this.name = name;
        this.desc = desc;
        this.tag = tag;
        this.min = min;
        this.discount = discount;
        this.startTime = startTime;
        this.endTime = endTime;
    }
}
